home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Hyper / T / ToolKit 5.0.1.sit / ToolKit™ / ToolKit™ XCMDs / ToolKit™ XCMDs.rsrc / TEXT_9994_TKpathname.txt < prev   
Encoding:
Text File  |  1994-05-12  |  1.4 KB  |  50 lines

  1. TKpathname
  2.  
  3.       XFCN
  4.       No. 4407
  5.       Version:  5.0 (public domain)
  6.       Copyright ¬© 1990 - 1994 by Stan Gilbert
  7. _____________________________________________________
  8.  
  9. TKpathname returns variations of a full pathname.  It can return the full pathname, leafname (just the filename), volume name, or the full pathname of an "added" filename.  This is a very powerful XFCN and its use is not always obvious.  For instance, it can be used to add a stack to the "stacksinuse" hierarchy.
  10.  
  11.                          ∂
  12. Examples
  13.  
  14. √ì√äget TKpathName("add","Drawings:MacPaint:")
  15. √ä√ä‚Ä∫get TKpathName("leaf",fileName)
  16. √ä√ä‚Ä∫get TKpathName("vol")
  17. √ä√ä‚Ä∫get TKpathName("full")
  18.  
  19.  
  20. Parameters
  21.  
  22. Parameter 1
  23.  
  24. These commands are mutually exclusive
  25.  
  26. add:  Append addName (parameter 2) to the pathname of the 
  27. ¬†¬†current stack
  28. leaf:  Return only last name (leaf or filename) of full pathname
  29. vol:  Return only volume name of current stack
  30. full:  Return entire pathname, excluding stackname
  31. home:  Return full path and stackname of Home stack
  32.  
  33. Parameter 2
  34.  
  35. name:  NameÔ¨Çfor use only with "add" or "leaf".
  36.  
  37.  
  38. Return Values
  39.  
  40. get TKpathname(short name of this stack)
  41. Returns the full pathname of the current stack.  A pathname does NOT include the name of the stack itself.
  42.  
  43.  
  44. Related Topics
  45.  
  46. ÓÊTKgetFile
  47.  
  48.  
  49. °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
  50.